@use '@/styles/variables' as *;

.size {
  position: relative;
  width: 30%;
  opacity: 1;
  transition: all 1s;
}

.hide {
  opacity: 0;
}

.inner {
  height: 93%;
  margin: 24px;
  padding: 10px;
  border: $basic-border;
  border-radius: 20px;
}

:global(.ant-card) {
  background-color: inherit;
}

.brandInfo {
  height: 15vh;
  border: $basic-border;
  border-radius: 10px;
  padding: 5px;

  h2 {
    font-size: 3vh;
    border-bottom: 2px solid $baisc-border-color;
    text-align: center;
    font-weight: bold;

    span {
      font-size: 4vh;
      font-family: "Brush Script MT", cursive !important;
      color: #eb9b50;
    }

    span:first-child,
    img {
      display: inline-block;
      width: 4.5vh;
      height: 4.5vh;
      line-height: 4.5vh;
      margin-bottom: 0.3vh;
    }

    span,
    img {
      vertical-align: middle;
    }
  }

  .content {
    position: relative;
    padding: 1vh;
    height: 8vh;

    p {
      height: 3vh;
      line-height: 3vh;
      font-size: 2vh;
      font-family: "Brush Script MT", cursive;
    }

    button {
      position: absolute;
      right: 0;
      bottom: 5px;
      font-size: 1.5vh;
      padding: 3px;
      color: #fff;
      background-color: inherit;
      border: $basic-border;
    }
  }
}

:global(.ant-popover-inner-content) {
  width: 200px;
}

.statistic {
  height: 9vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border: $basic-border;
  border-radius: 10px;
  margin: 10px 0;
  padding: 2px 0;

  .storeNumber {
    text-align: center;

    p {
      font-size: 2vh;
    }
  }

  :global(.ant-statistic-title) {
    color: #fff !important;
    margin: 0;
    font-size: 2vh;
  }

  :global(.ant-statistic-content) {
    color: #fff !important;
    font-size: 2vh;
  }

  .green :global(.ant-statistic-content) {
    color: #3f8600 !important;
  }
}

.pieCharts {
  height: 25vh;
  @include flex-between;
  margin: 10px 0;
}

.topList {
  height: 29vh;

  .head {
    height: 3vh;
    font-size: 2vh;
    text-align: center;
    margin-bottom: 5px;
    font-weight: bold;
  }
}

.carousel {
  height: 32vh;
  margin: 10px 0;

  .child {
    width: 48%;
    height: 100%;
    border: $basic-border;
    border-radius: 10px;
    background-color: $bg-lightblue-color;
  }

  @include flex-between;

  :global(.ant-card) {
    height: 29vh;
    border: $basic-border;

    :global(.ant-card-body) {
      padding: 0;
    }

    :global(.ant-card-meta-title) {
      height: 5vh;
      line-height: 4vh;
      font-size: 2vh;
      padding: 5px 0 10px;
      text-align: center;
      color: #fff;
    }

    img {
      border-radius: 0;
    }
  }

  h3 {
    height: 3vh;
    line-height: 3vh;
    font-size: 2vh;
    font-weight: bold;
    text-align: center;
  }
}

:global(.slick-dots-bottom) {
  bottom: 2% !important;
}

.leftout {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(0, -100%);

  font-size: 24px;
  color: #ccc;
}

.comments {
  height: 30vh;
  margin-top: 1.5vh;
}